to masturbate.
"Have a good one" being an alias for "Have a good wank", or more precisely "Go f*** yourself".
It seems that some people who are store
clerks are embittered by the fact that they are store clerks and seek
solace in this ambiguous
flippancy.